package cn.itlaobing.springboot.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
	Log log =LogFactory.getLog(HelloController.class);
	@Value("${asd.info}")
	private String hhhhh;
	
	@RequestMapping("/hello")
	public String name(Model model){
		
		log.info(">>>>>>>>>>>>");
		model.addAttribute("suc", hhhhh);
		
		return "hello";
	}
}
